﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BTaxiWarming
    {

        private readonly DAL.DTaxiWarming _dTaxiWarming = new DTaxiWarming();

        public bool Add(Model.TaxiWarmingInfo model)
        {
            return _dTaxiWarming.Add(model);
        }
        
        public bool Update(Model.TaxiWarmingInfo model)
        {
            return _dTaxiWarming.Update(model);
        } 

        public bool Delete(int id)
        {
            return _dTaxiWarming.Delete(id);
        }
        
        public Model.TaxiWarmingInfo GetModel(int id)
        {
            return _dTaxiWarming.GetModel(id);
        }
        
        public DataSet GetList(string strWhere)
        {
            return _dTaxiWarming.GetList(strWhere);
        }

        public DataSet GetListByPage(int page, int pagesize, string strWhere)
        {
            return _dTaxiWarming.GetListByPage(page, pagesize, strWhere);
        }

        public int GetRecordCount(string strWhere)
        {
            return _dTaxiWarming.GetRecordCount(strWhere);
        }
    }
}
